<!doctype html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
	<meta name="format-detection" content="telephone=no"/>
	<title>网点详情</title>
	<link rel="stylesheet" href="css/base.css"/>
</head>
<body class="bodydetail">
	<div class="detail_header">
		<span class="back_step"> <i></i>
		</span>
		<span class="title">网点详情</span>
	</div>
	<div class="detail_box">
		<div class="detail_info box">
			<div class="title"> </div>
			<div class="info">
				<span class="tip"> </span>
				<span> </span>
			</div>
			<div class="time">
				 
			</div>
			<div class="btn disable">在线办理</div>
		</div>
		<div class="detail_content box">
			<div class="basic">
				<p> </p>
				<p class="telephone">
					<span>电话</span>
					<span></span>
				</p>
				<!-- <p class="telephone">
					<span>传真</span>
					<span>0754-8888888</span>
				</p> -->
			</div>
			<div class="other">
				<p class="title">主营业务</p>
				<p> 
				</p>
				<!-- <p> <b>储值卡：</b>
					发行、更换、恢复、信息更变、维修、 车牌信息更变、销售、客户资料、信息服务管理、换 卡、挂失补领、终止使用。
				</p> -->
			</div>
		</div>
	</div>
	<script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src='js/common.js'></script>
	<script type="text/javascript">
		$(function(){
			$(".back_step").click(function(){
				window.location.href='website/toMap';
			})

			var id = getUrlParam("id");
			console.log(id);
			load_detail();
			function load_detail() {
				$.ajax({
					url: "websites/" + id,
					type: "GET",
					data: {
						"id": id
					},
					dataType: 'json',
					async: false, //同步
					timeout: 2000,
					success: function(data) {
						console.log(data)
						$(".detail_info .title").html(data.object.name)
						$(".detail_info .info .tip").html(data.object.type);
						$(".detail_info .info span").eq(1).html(data.object.status);
						$(".detail_info .time").html(data.object.shopHours);
						$(".detail_content .basic p").eq(0).html(data.object.address);
						$(".detail_content .telephone span").eq(1).html(data.object.telephone);
						$(".detail_content .other p").eq(1).html('<b>电子标签：</b>' + data.object.acceptBusiness);
					},
					error: function(data) {
						console.log(data);
					}
				});
			}

		})
	</script>
</body>
</html>